:root {
  --primary-color: #1677ff;
  --secondary-color: #f8f9fa;
  --text-color: #333;
  --light-text-color: #6c757d;
  --border-color: #e9ecef;
  --incoming-bg: #f0f2f5;
  --outgoing-bg: #1677ff;
  --hover-bg: #e0e0e0;
}
:global(.epr-preview) {
  display: none !important;
}
.chatContainer {
  display: flex;
  max-width: 900px;
  height: 85vh;
  margin: 20px auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-radius: 16px;
  overflow: hidden;
  background-color: white;
  transition: all 0.3s ease;
}

.contactList {
  flex: 1;
  background: var(--secondary-color);
  padding: 16px;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.contactList h2 {
  margin: 0 0 16px 0;
  font-size: 1.2rem;
  color: var(--text-color);
}

.contact {
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background-color 0.2s ease;
}

.contact:hover {
  background: var(--hover-bg);
}

.contactActive {
  background: var(--hover-bg);
  font-weight: 500;
}

.contactAvatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 500;
}

.chatWindow {
  flex: 3;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.chatHeader {
  padding: 16px 20px;
  background: var(--secondary-color);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.headerAvatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 500;
}

.chatHeader h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-color);
}

.typing {
  color: var(--light-text-color);
  font-size: 0.9em;
  margin-top: 4px;
}

.messageList {
  padding: 24px 32px;
  height: 500px;
  overflow-y: auto;
  background: #f7f8fa;
  display: flex;
  flex-direction: column;
}

.message {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
  max-width: 70%;
}

.outgoing {
  align-self: flex-end;
  align-items: flex-end;
  margin-right: 24px;
}

.incoming {
  align-self: flex-start;
  align-items: flex-start;
  margin-left: 24px;
}

.messageContent {
  padding: 14px 22px;
  border-radius: 20px;
  font-size: 1.1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 4px;
  word-break: break-all;
  max-width: 100%;
  min-width: 48px;
  display: inline-block;
  transition: background 0.2s;
}

.outgoing .messageContent {
  background: var(--outgoing-bg);
  color: #fff;
  border-bottom-right-radius: 10px;
}

.incoming .messageContent {
  background: var(--incoming-bg);
  color: #222;
  border-bottom-left-radius: 10px;
}

.messageTime {
  font-size: 0.92rem;
  color: #999;
  margin-top: 2px;
  margin-left: 10px;
  margin-right: 10px;
}

.inputArea {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  background: #f7f8fa;
  border-top: 1px solid #e9ecef;
  gap: 16px;
}

.inputActions {
  display: flex;
  gap: 12px;
}

.iconBtn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #1677ff;
  box-shadow: 0 2px 8px rgba(22,119,255,0.08);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.iconBtn:hover {
  background: #e6f0ff;
  box-shadow: 0 4px 16px rgba(22,119,255,0.12);
}

.input {
  flex: 1;
  padding: 12px 20px;
  border: 1.5px solid #e9ecef;
  border-radius: 24px;
  font-size: 1.1rem;
  outline: none;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22,119,255,0.10);
}

.sendBtn {
  padding: 0 32px;
  height: 44px;
  border-radius: 24px;
  background: #1677ff;
  color: #fff;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(22,119,255,0.10);
  transition: background 0.2s, box-shadow 0.2s;
}
.sendBtn:disabled {
  background: #b3d1ff;
  cursor: not-allowed;
}
.sendBtn:hover:not(:disabled) {
  background: #1256b7;
  box-shadow: 0 4px 16px rgba(22,119,255,0.16);
}

.emptyChat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--light-text-color);
  text-align: center;
  padding: 20px;
}

.emptyChatIcon {
  font-size: 4rem;
  margin-bottom: 16px;
  color: rgba(0, 123, 255, 0.2);
}

.messageList::-webkit-scrollbar {
  width: 6px;
}

.messageList::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.messageList::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.messageList::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}


